package com.lyz.anli;

/**
 * @ClassName Arrtwo
 * @Description 二维数组遍历
 * @Author 2214361854
 * @Date 2022/2/13 13:19
 * @Version 1.0
 */
public class Detwoarr {
    public static void main(String[] args) {
        int[][] arr = {{1,2,3},{14,5,6}};
        twoarr(arr);
    }
    public static void twoarr(int[][] arr){
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]);
            }
            System.out.println();
        }
    }
}
